package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 indicator
 * 
 * @author ruoyi
 * @date 2024-07-14
 *
 */
public class Indicator extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String indicatorName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long indicatorLevel;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long parentIndicatorId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String calculationMethod;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String indicatorDescription;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String dataSource;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String description;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createUser;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String modifyUser;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date modifyTime;

    private Float subjectiveWeight;

    public Float getSubjectiveWeight() {
        return subjectiveWeight;
    }
    public void setSubjectiveWeight(Float subjectiveWeight) {
        this.subjectiveWeight = subjectiveWeight;
    }

    private List<Indicator> children;

    private List<List<Integer>> judgementMatrix;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public void setChildren(List<Indicator> children){
        this.children = children;
    }
    public void addChildren(Indicator child){
        if(this.children == null){
            this.children = new java.util.ArrayList<>();
        }
        this.children.add(child);
    }

    public List<Indicator> getChildren() {
        return children;
    }

    public Long getId()
    {
        return id;
    }
    public void setIndicatorName(String indicatorName) 
    {
        this.indicatorName = indicatorName;
    }

    public String getIndicatorName() 
    {
        return indicatorName;
    }
    public void setIndicatorLevel(Long indicatorLevel) 
    {
        this.indicatorLevel = indicatorLevel;
    }

    public Long getIndicatorLevel() 
    {
        return indicatorLevel;
    }
    public void setParentIndicatorId(Long parentIndicatorId) 
    {
        this.parentIndicatorId = parentIndicatorId;
    }

    public Long getParentIndicatorId() 
    {
        return parentIndicatorId;
    }
    public void setCalculationMethod(String calculationMethod) 
    {
        this.calculationMethod = calculationMethod;
    }

    public String getCalculationMethod() 
    {
        return calculationMethod;
    }
    public void setIndicatorDescription(String indicatorDescription) 
    {
        this.indicatorDescription = indicatorDescription;
    }

    public String getIndicatorDescription() 
    {
        return indicatorDescription;
    }
    public void setDataSource(String dataSource) 
    {
        this.dataSource = dataSource;
    }

    public String getDataSource() 
    {
        return dataSource;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setModifyUser(String modifyUser) 
    {
        this.modifyUser = modifyUser;
    }

    public String getModifyUser() 
    {
        return modifyUser;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    public List<List<Integer>> getJudgementMatrix() {
        return judgementMatrix;
    }

    public void setJudgementMatrix(List<List<Integer>> judgementMatrix) {
        this.judgementMatrix = judgementMatrix;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("indicatorName", getIndicatorName())
            .append("indicatorLevel", getIndicatorLevel())
            .append("parentIndicatorId", getParentIndicatorId())
            .append("calculationMethod", getCalculationMethod())
            .append("indicatorDescription", getIndicatorDescription())
            .append("dataSource", getDataSource())
            .append("description", getDescription())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("modifyUser", getModifyUser())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
